package cn.seaboot.admin.quartz.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
* POJO
* 定时请求任务 [t_schedule_action]
* @author ChenSS on 2018/6/20.
*/
@Schema(description = "定时请求任务 [t_schedule_action] 实体类")
public class ScheduleAction implements Serializable {

    /**
    * ID
    */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
    * 任务ID
    */
    @Schema(description = "任务ID")
    private Long jobId;
    /**
    * 任务名
    */
    @Size(max = 32)
    @Schema(description = "任务名")
    private String jobName;
    /**
    * 任务分组
    */
    @Size(max = 32)
    @Schema(description = "任务分组")
    private String jobGroup;
    /**
    * 触发器名称
    */
    @Size(max = 32)
    @Schema(description = "触发器名称")
    private String triggerName;
    /**
    * 触发器分组
    */
    @Size(max = 32)
    @Schema(description = "触发器分组")
    private String triggerGroup;
    /**
    * 任务名
    */
    @Size(max = 128)
    @Schema(description = "任务名")
    private String jobTitle;
    /**
    * 描述
    */
    @Size(max = 128)
    @Schema(description = "描述")
    private String description;
    /**
    * 路径
    */
    @Size(max = 255)
    @Schema(description = "路径")
    private String requestUrl;
    /**
    * 请求方式
    */
    @Size(max = 8)
    @Schema(description = "请求方式")
    private String requestMethod;
    /**
    * 请求参数
    */
    @Size(max = 255)
    @Schema(description = "请求参数")
    private String requestParams;
    /**
    * 运行状态
    */
    @Schema(description = "运行状态")
    private Integer taskStatus;
    /**
    * 是否可用
    */
    @Schema(description = "是否可用")
    private Boolean disabled;
    /**
    * 下次触发时间
    */
    @Schema(description = "下次触发时间")
    private java.time.LocalDateTime nextFire;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getTriggerName() {
        return triggerName;
    }

    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName;
    }

    public String getTriggerGroup() {
        return triggerGroup;
    }

    public void setTriggerGroup(String triggerGroup) {
        this.triggerGroup = triggerGroup;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(String requestParams) {
        this.requestParams = requestParams;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public java.time.LocalDateTime getNextFire() {
        return nextFire;
    }

    public void setNextFire(java.time.LocalDateTime nextFire) {
        this.nextFire = nextFire;
    }
}
